package org.kabeja.dxf.helpers;

/**
 * @author shutao
 * @since 2022/4/25 10:14
 */
public class SplinePoint extends Point {
    public static final int TYPE_CONTROLPOINT = 0;
    public static final int TYPE_FITPOINT = 1;
    public static final int TYPE_STARTTANGENT = 2;
    public static final int TYPE_ENDTANGENT = 3;
    protected int type = 0;

    public SplinePoint() {
    }

    public boolean isControlPoint() {
        return this.type == 0;
    }

    public boolean isEndTangent() {
        return this.type == 3;
    }

    public boolean isFitPoint() {
        return this.type == 1;
    }

    public boolean isStartTangent() {
        return this.type == 2;
    }

    public void setType(int var1) {
        this.type = var1;
    }

    public int getType() {
        return this.type;
    }
}
